package com.jianggy.adapter.springmvc;

/**
 * 简单模式Spring mvc的HandlerMapping
 */
public class HandlerMapping {
	private static String simpleControllerUrl = "/simple";
	private static String httpServletUrl = "/http";

	public Object lookHandler(String url) {
		if (simpleControllerUrl.equals(url)) {
			return new SimpleControllerHandler();
		}
		if (httpServletUrl.equals(url)) {
			return new HttpServletHandler();
		}
		return null;
	}
}
